<template>
    <div class="link" v-show="linkFlag">
        <div class="linkText">
            <input type="text" placeholder="添加链接">
            <button>添加</button>
        </div>
    </div>
</template>

<script>
    export default {
        props: ['linkFlag']
    }
</script>

<style type="text/scss" lang="scss" scoped>
    .link {
        width: 100%;
        height: 80px;
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;

        .linkText {
            width: 93%;
            padding: 7px 2px;
            border-radius: 30px;
            overflow: hidden;
            box-shadow: inset 0 0 2px 0 #bfbfbf;
            display: flex;
            justify-content: space-between;
            align-items: center;

            input {
                width: 85%;
                height: 100%;
                border: none;
                outline: none;
                text-indent: 10px;
                font-size: 14px;
                color: #404040;
            }

            button {
                width: 66px;
                height: 30px;
                outline: none;
                border: 1px solid transparent;
                border-radius: 18px;
                background-color: #f1f4f6;
                margin-right: 5px;
                font-size: 14px;
                color: gray;
                cursor: default;
                pointer-events: none;
            }

            .submit {
                color: white;
                cursor: pointer;
                background-color: #2fbdfc;
                pointer-events: auto;
            }
        }
    }
</style>